public class PC{
	CPU cpu;
	HardDisk HD;
	void setCPU(CPU cpu){
		this.cpu=cpu;
	}
	void setHardDisk(HardDisk HD){
		this.HD=HD;
	}
	void show(){
		System.out.println("cpu速度:"+cpu.getSpeed()+"*"+this);
		System.out.println("hd容量"+HD.getAmount()+"*"+this);
	}
	PC(){
	}
	PC(CPU cpu){
	}
	PC(HardDisk HD){
	}
	PC(CPU cpu,HardDisk HD){
	}

	@Override

	public String toString() {

		System.out.println("public String toString()");

		return "PCToString []";

	}
}
